﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Site1.Master" AutoEventWireup="true" CodeBehind="Members.aspx.cs" Inherits="gamexpert.admin.Members" Theme="Admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>Members</h2>
    <div class="submenu">
    <ul><li><asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Download members list</asp:LinkButton></li></ul>
</div>
<div>
    <p>If you want to download all the members in CSV file format please click the above link.</p>
</div>
<div class="content">
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" BackColor="White" 
                BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource1" 
                ForeColor="Black" GridLines="Vertical">
                <RowStyle BackColor="#F7F7DE" />
                <Columns>
                    <asp:BoundField DataField="UserName" HeaderText="UserName" 
                        SortExpression="UserName" />
                    <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                </Columns>
                <FooterStyle BackColor="#CCCC99" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:gamexpertConnectionString %>" 
                SelectCommand="SELECT [UserName], [Email] FROM [vw_aspnet_MembershipUsers]">
            </asp:SqlDataSource>
        </asp:View>
        <asp:View ID="View2" runat="server">
            
        </asp:View>
        
    </asp:MultiView>
    
</div>
    
    
</asp:Content>
